#include"BinaryTree.h"

/*
二叉树
        12
     5       18
    2   9  15  19
	          17
			16
*/

int main()
{
	char* arr = "12,5,2,##9,##18,15,#17,16,###19,##";
	BinaryTree bt;
	bt.Deserialize(arr);//用先序序列创建二叉树

	vector<vector<int>> tvec = bt.Print();
	bt.ShowTwoVec(tvec);

	char* res = bt.Serialize();//将二叉树转化成字符串
	puts(res);

	delete res;
	system("pause");
	return 0;
}